package com.text.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class StudentAndCourseId implements Serializable {

    @Id
    @Column(name = "student_id", nullable = false)
    private String studentId;

    @Id
    @Column(name = "course_id", nullable = false)
    private String courseId;
}